home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / license_dev.idb / usr / include / lmsgi.h.z / lmsgi.h
C/C++ Source or Header  |  1996-12-06  |  3KB  |  81 lines

  1. /*
  2.  * lmsgi.h
  3.  *
  4.  * This is the public interface to the flexlm library that SGI uses.
  5.  * It greatly simplifies the number of flexlm calls needed.
  6.  *
  7.  *
  8.  * Copyright 1995, Silicon Graphics, Inc.
  9.  * ALL RIGHTS RESERVED
  10.  *
  11.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  12.  * States.   Use of a copyright notice is precautionary only and does not
  13.  * imply publication or disclosure.
  14.  *
  15.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  16.  * Use, duplication or disclosure by the Government is subject to restrictions
  17.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  18.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  19.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  20.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  21.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  22.  *
  23.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  24.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  25.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  26.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  27.  * GRAPHICS, INC.
  28.  */
  29.  
  30. #include <sys/types.h>
  31. #include <lmclient.h>
  32. #include <lm_code.h>
  33. #include <lm_attr.h>
  34.  
  35.  
  36. /* Constants used to support apps written for FLEX 4.0 */
  37.  
  38. #define ENCRYPTION_CODE_1 ENCRYPTION_SEED1
  39. #define ENCRYPTION_CODE_2 ENCRYPTION_SEED2
  40.  
  41.  
  42.  
  43. /* additional attributes for license_set_attr() */
  44.  
  45. #define LMSGI_NO_SUCH_FEATURE    10001    /* PTR to func returning int */
  46.                 /* function to print out error message and */
  47.                 /* other information if no such feature */
  48.                 /* is available in the current license file */
  49.  
  50. #define    LMSGI_30_DAY_WARNING    10002 /* PTR to func returning int */
  51.                 /* function to print out warning message */
  52.                 /* that the current license expires within */
  53.                 /* 30 days */
  54. #define    LMSGI_60_DAY_WARNING    10003 /* PTR to func returning int */
  55.                 /* function to print out warning message */
  56.                 /* that the current license expires within */
  57.                 /* 60 days */
  58. #define    LMSGI_90_DAY_WARNING    10004 /* PTR to func returning int */
  59.                 /* function to print out warning message */
  60.                 /* that the current license expires within */
  61.                 /* 90 days */
  62.  
  63. #ifdef __cplusplus
  64. extern "C" {
  65. #endif
  66.  
  67. extern int    license_init(VENDORCODE*, char *, boolean_t);
  68. extern int    license_chk_out(VENDORCODE *, char *, char *);
  69. extern int    license_chk_in(char *, int);
  70. extern void   license_timer(void);
  71. extern int    license_set_attr(int, LM_A_VAL_TYPE);
  72. extern time_t license_expdate(char *);
  73. extern char*  license_errstr(void);
  74. extern int    license_status(char *);
  75.  
  76. extern LM_HANDLE *get_job(void);
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.